 <#ftl encoding="UTF-8" />
            <div id="panelTop" style="position:relative; height:45px; background-color:#fff;">
                <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                    <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                    <button type="button" name="_ButCheck" id="ButCheck" class="act__button" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
                    <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
                    <button type="button" name="_ButPrint" id="ButPrint" class="act__button" onclick="_InstancePageHeader.DoPrintPreview();" style="margin-left:10px;"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>订单打印预览</button>
                    <button type="button" name="_ButExport" id="ButExport" class="act__button" onclick="_InstancePageHeader.ExportMemo();"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>导出纸卡类使用明细</button>
                </div>
                <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                    <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                </div>
                <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:8px;">
                    <div class="panel__toolbar_item">
                        <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                    </div>
                    <div class="panel__toolbar_item" disabled="disabled">
                        <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                    </div>
                </div>
            </div>
    
            <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
            <input id="HeaderId" type="hidden" value="<#if poId?exists>${poId}<#else>0</#if>" />
            <input id="QuotedFlag" type="hidden" value="0" /><!-- 被入库单引用标记 -->
            <div style="position:absolute; top:13px; right:200px;">
                <span id="CheckedTip" class="huzo_status huzo_status__green">状态：已审核</span>
            </div>

            <div id="slave_area" style="position:relative; top:0px; width:100%;">
                <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%;">
                    <li id="menu_01" class="tabInactive" style="margin-left:8px;">
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">采购订单</abbr></span></span>
                        </div>
                    </li>
                    <li id="menu_02">
                        <div>
                            <span class="tab_stretch"><span class="tabtext""><abbr class="ls_02">引入调达表</abbr></span></span>
                        </div>
                    </li>
                    <li id="menu_03">
                        <div>
                            <span class="tab_stretch"><span class="tabtext""><abbr class="ls_03">引入补料单</abbr></span></span>
                        </div>
                    </li>
                    <li id="menu_04">
                        <div>
                            <span class="tab_stretch"><span class="tabtext""><abbr class="ls_04">订单明细</abbr></span></span>
                        </div>
                    </li>
                </ul>
                <div id="tabPanelContent" class="tab__wrapper">
                    <!-- 采购订单-->
                    <div id="tab_wrapper_01" class="tab__content">
                        <form id="form_data" class="form__data_content">
                            <div id="btnPanel01" style="position:relative; top:0px; height:40px; border-bottom:1px solid #ddd; background-color:#fff;">
                                <div id="btnPanel_01" style="position:absolute; display:inline-block; top:8px; left: 8px; width:auto; padding:0px;">
                                    <button type="button" name="_ButNew" id="ButNew" class="act__button" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                                    <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                                </div>
                            </div>
                            <div class="data__table_wrapper">
                                <table class="data__table">
                                    <colgroup>
                                        <col style="width: 8%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 8%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 8%;" />
                                        <col style="width: 17%;" />
                                        <col style="width: 8%;" />
                                        <col />
                                    </colgroup>
                                    <tbody>
                                        <tr>
                                            <td class="td__label"><label>订单合同号<em>★</em></label></td>
                                            <td>
                                                <input type="text" id="PoNo" name="_PoNo" tabindex="1" style="width:100%;" />
                                            </td>
                                            <td class="td__label"><label>合同类型<em>★</em></label></td>
                                            <td>
                                                <select id="BillTypeId" name="_BillTypeId" tabindex="2" style="width:135px;">
                                                    <option value="-1">--- 请选择 ---</option>
                                                    <#if PurchaseTypeList?exists>
                                                    <#list PurchaseTypeList as item>
                                                    <option value="${item.typeId}">${item.typeName}</option>
                                                    </#list>
                                                    </#if>
                                                </select>
                                            </td>
                                            <td class="td__label"><label>供应商<em>★</em></label></td>
                                            <td colspan="3">
                                                <input type="hidden" id="SupplierId" name="_SupplierId" value="" />
                                                <input type="text" id="SupplierNo" name="_SupplierNo" tabindex="3" style="min-width:60px; max-width:10%;" />
                                                <div id="ChoiceSupplier" class="form_input_dropdown_wrapper"  style="min-width:88%;" onclick="_InstancePageHeader.DoChoiceSupplier();">
                                                    <input type="text" id="SupplierName" name="_SupplierName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="3" />
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label"><label>联系人</label></td>
                                            <td>
                                                <input type="text" id="Attn" name="_Attn" readonly="readonly" tabindex="4" value="" />
                                            </td>
                                            <td class="td__label"><label>传真</label></td>
                                            <td>
                                                <input type="text" id="Fax" name="_Fax" style="width:100%;" readonly="readonly" tabindex="5" value=""/>
                                            </td>
                                            <td class="td__label"><label>落单日期<em>★</em></label></td>
                                            <td>
                                                <div id="ChoiceSignedDate" class="form_input_dropdown_wrapper" style="width:135px;">
                                                    <input type="text" id="SignedDate" name="_SignedDate" class="select-dropdown" readonly="readonly" tabindex="6" />
                                                    <span class="dropdown_button" style="right:5px;"><i class="fa-all fa-1-1 fa-calendar"></i></span>
                                                </div>
                                            </td>
                                            <td class="td__label"><label>到货日期<em>★</em></label></td>
                                            <td>
                                                <div id="ChoiceOrderArrivalDate" class="form_input_dropdown_wrapper" style="width:135px;">
                                                    <input type="text" id="OrderArrivalDate" name="_OrderArrivalDate" class="select-dropdown" readonly="readonly" tabindex="7" />
                                                    <span class="dropdown_button" style="right:5px;"><i class="fa-all fa-1-1 fa-calendar"></i></span>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label"><label>克重</label></td>
                                            <td>
                                                <input type="text" id="GramWeight" name="_GramWeight" tabindex="8" style="width:98%;" />
                                            </td>
                                            <td class="td__label"><label>币种&税率<em>★</em></label></td>
                                            <td>
                                                <input type="hidden" id="CurrencyId" name="_CurrencyId" value="" />
                                                <div id="ChoiceCurrency" class="form_input_dropdown_wrapper" style="width:70px;;" onclick="_InstancePageHeader.DoChoiceCurrency();">
                                                    <input type="text" id="CurrencyName" name="_CurrencyName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="9" />
                                                </div>
                                                <span style="font-weight:bold;">（税率）</span>
                                                <input type="hidden" id="TaxRateId" name="_TaxRateId" value="" />
                                                <div id="ChoiceTaxRate" class="form_input_dropdown_wrapper" style="width:70px;;" onclick="_InstancePageHeader.DoChoiceTaxRate();">
                                                    <input type="text" id="TaxRateText" name="_TaxRateText" class="select-dropdown with_select_flag" readonly="readonly" tabindex="10" />
                                                </div>
                                            </td>
                                            <td class="td__label"><label>运费</label></td>
                                            <td colspan="3" style="position:relative;">
                                                <input type="checkbox" class="checkbox" id="FreightFlag" name="_FreightFlag" tabindex="11" />&nbsp;&nbsp;（选中则包含运费）
                                                <div class="checkbox_lines" style="width:135px;"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label"><label>付款条件<em>★</em></label></td>
                                            <td colspan="7">                        
                                                <div id="ChoiceTermsOfPayment" class="form_input_dropdown_wrapper" style="width:100%;" onclick="_InstancePageHeader.DoChoiceTermsOfPayment();">
                                                    <input type="text" id="TermsOfPayment" name="_TermsOfPayment" class="select-dropdown with_select_flag" style="color:#000;" tabindex="12" />
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                                <label for="QuantityOfLimited">许可数量
                                                    <i class="fa-all fa-1-1 fa-question-circle" style="margin-left:10px; cursor:pointer;" onclick="_InstancePageHeader.DoChoiceQuantityOfLimited();"></i>
                                                </label>
                                            </td>
                                            <td colspan="7">
                                                <textarea class="area" id="QuantityOfLimited" name="_QuantityOfLimited" rows="2" tabindex="13" style="width:100%; height:49px; resize:none;"></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                                <label for="QualityStandard" style="position:relative;">品质要求
                                                    <i class="fa-all fa-1-1 fa-question-circle" style="margin-left:10px; cursor:pointer;" title="选择" onclick="_InstancePageHeader.DoChoiceInpStandard();"></i>
                                                    <i class="fa-all fa-1-1 fa-eraser" style="position:absolute; top:20px; right:0px; cursor:pointer;" title="清空" onclick="_InstancePageHeader.DoCleanInpStandard();"></i>
                                                </label>
                                            </td>
                                            <td colspan="7">
                                                <div id="QualityStandard" class="wrap_content_with_lines" style="height:128px;">
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                                <label for="PerformedPlace">交货地址
                                                    <i class="fa-all fa-1-1 fa-question-circle" style="margin-left:10px; cursor:pointer;" onclick="_InstancePageHeader.DoChoicePerformedPlace();"></i>
                                                </label>
                                            </td>
                                            <td colspan="7">
                                                <textarea class="area" id="PerformedPlace" name="_PerformedPlace" rows="2" tabindex="14" style="width:100%; height:49px; resize:none;"></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                                <label for="Description">说明</label>
                                            </td>
                                            <td colspan="7">
                                                <textarea class="area" id="Description" name="_Description" rows="2" tabindex="14" style="width:100%; height:49px; resize:none;"></textarea>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="td__label"><label>采购担当<em>★</em></label></td>
                                            <td>
                                                <input id="PurchasedBy" type="hidden" value="0" />
                                                <div id="ChoiceBuyer" class="form_input_dropdown_wrapper" style="width:135px;" onclick="_InstancePageHeader.DoChoicePurchasedBy();">
                                                    <input type="text" id="PurchasedByName" name="_PurchasedByName" class="select-dropdown with_select_flag" readonly="readonly" tabindex="15" />
                                                </div>
                                            </td>
                                            <td class="td__label">
                                                <label for="UpdatedByName">操作情况</label>
                                            </td>
                                            <td>
                                                <input type="text" id="UpdatedByName" name="_UpdatedByName" readonly="readonly" tabindex="16" value="<#if identityUser?exists>${identityUser.getEmployeeName()}</#if>" style="width:90px;" />
                                                <input type="text" id="UpdatedDate" name="_UpdatedDate" readonly="readonly" tabindex="17" style="width:90px;" />
                                            </td>
                                            <td class="td__label">
                                                <label>审核情况</label>
                                            </td>
                                            <td colspan="3">
                                                <input type="text" id="CheckedByName" name="_CheckedByName" readonly="readonly" tabindex="18" value="" style="width:90px;" />
                                                <input type="text" id="CheckedDate" name="_CheckedDate" readonly="readonly" tabindex="19" style="width:90px;" />
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </form>
                    </div>
                    <!-- 引入调达表 -->
                    <div id="tab_wrapper_02" class="tab__content" style="padding:0 8px; display:none;">
                        <div id="btn_panel_02" style="position:relative; top:0px; padding:5px 0;">
                            <button type="button" name="_ButImportMrpA" id="ButImportMrpA" class="act__button act__save" onclick="_InstancePageLinesMrpHeader.ImportMrp();">引入调达表</button>
                        </div>
                        <div id="data_area_02">
                            <table id="tabMrpListHeader" class="layout display" style="width:780px;">
                                <colgroup>
                                    <col style="width: 30px;" />
                                    <col style="width: 160px;" />
                                    <col style="width: 270px;" />
                                    <col style="width: 230px;" />
                                    <col />
                                    <col style="width: 18px;" />
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th style="text-align:center;">#</th>
                                        <th>主合同号</th>
                                        <th>款号</th>
                                        <th>品名</th>
                                        <th style="text-align:center;">调达表类型</th>
                                        <th></th>
                                    </tr>
                                </thead>
                            </table>
                            <div id="divMrpListContent" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll; width:780px; max-height:100px;">
                                <table id="tabMrpListData" class="responsive__table" style="margin-top:-1px; width:100%;">
                                    <colgroup>
                                        <col style="width: 30px;" />
                                        <col style="width: 160px;" />
                                        <col style="width: 270px;" />
                                        <col style="width: 230px;" />
                                        <col />
                                    </colgroup>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                            <div id="btn_panel_02_02" style="position:relative; top:0;">
                                <span id="search_btn_02" class="search__icon" title="搜索" style="cursor:pointer;">
                                    <i class="fa fa-search" style="font-size:20px; position:absolute; top:5px; left:165px;"></i>
                                </span>
                                <span id="title_mrp_lines" style="position:absolute; left:0px; height:28px; line-height:28px; font-weight:bold;">
                                    ■ 引入的调达表明细
                                </span>
                            </div>
                            <div id="grid__wrapper_02" style="position:relative; top:30px;">
                                <table style="width:100%;">
                                    <tr>
                                        <td style="overflow:hidden; width:930px;">
                                            <div id="divH21" style="overflow:hidden; border:none;">
                                                <table id="tabHeader21" class="layout display" style="width:100%;">
                                                    <colgroup>
                                                        <col style="width: 120px;" />
                                                        <col style="width: 150px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 200px;" />
                                                    </colgroup>
                                                    <thead>
                                                        <tr>
                                                            <th>主合同号</th>
                                                            <th class="sort__column">款号</th>
                                                            <th>发货目的地</th>
                                                            <th class="sort__column">材料名</th>
                                                            <th class="sort__column">材料号</th>
                                                            <th>供应商</th>
                                                            <th>用料部位</th>
                                                        </tr>
                                                    </thead>
                                                </table>
                                            </div>
                                        </td>
                                        <td>
                                            <div id="divH22" style="overflow:hidden; border-right:1px solid #a8a8a8;">
                                                <table id="tabHeader22" class="layout display" style="margin-left:-1px; border-left:none; width:100%;">
                                                    <colgroup>
                                                        <col style="width: 125px;" />
                                                        <col style="width: 42px;" />
                                                        <col style="width: 100px;" />
                                                        <col style="width: 90px;" />
                                                        <col style="width: 180px;" />
                                                        <col style="width: 55px;" />
                                                        <col style="width: 55px;" />
                                                        <col style="width: 35px;" />
                                                        <col style="width: 55px;" />
                                                        <col style="width: 80px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 400px;" />
                                                    </colgroup>
                                                    <thead>
                                                        <tr>
                                                            <th>成品色</th>
                                                            <th style="text-align:center;">成品码</th>
                                                            <th class="sort__column">材料色</th>
                                                            <th>净幅</th>
                                                            <th>毛幅</th>
                                                            <th style="text-align:center;">工厂用量</th>
                                                            <th style="text-align:center;">套裁用量</th>
                                                            <th style="text-align:center;">单位</th>
                                                            <th style="text-align:center;">成品数量</th>
                                                            <th>需求量</th>
                                                            <th>库存数</th>
                                                            <th>补给数</th>
                                                            <th>备注</th>
                                                        </tr>
                                                    </thead>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="vertical-align:top; width:930px;">
                                            <div id="divD21" class="grid__data_wrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden;">
                                                <table id="tabData21" class="responsive__table" style="margin-top:-1px;">
                                                    <colgroup>
                                                        <col style="width: 120px;" />
                                                        <col style="width: 150px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 200px;" />
                                                    </colgroup>
                                                    <tbody>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </td>
                                        <td style="vertical-align:top;">
                                            <div id="divD22" class="grid__data_wrapper" onscroll="_InstancePageLinesMrpLines.ScrollTo();">
                                                <table id="tabData22" class="responsive__table" style="border-bottom:1px solid #c6c3bd; margin-top:-1px; margin-left:-1px; width:100%;">
                                                    <colgroup>
                                                        <col style="width: 125px;" />
                                                        <col style="width: 42px;" />
                                                        <col style="width: 100px;" />
                                                        <col style="width: 90px;" />
                                                        <col style="width: 180px;" />
                                                        <col style="width: 55px;" />
                                                        <col style="width: 55px;" />
                                                        <col style="width: 35px;" />
                                                        <col style="width: 55px;" />
                                                        <col style="width: 80px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 70px;" />
                                                        <col style="width: 400px;" />
                                                    </colgroup>
                                                    <tbody>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <div id="wrapper__navbar_02" class="panel__nav_strip">
                                    <div style="position:relative; display:inline-block; padding:0px; height:30px; line-height:30px;">
                                        <span id="loading__indicator_02"><i class="fa fa-refresh fa-fw"></i></span>
                                        显示 <select id="page-size_02" onchange="_InstancePageLinesMrpLines.SetPageSize02()">
                                            <option value="10">10</option>
                                            <option value="15">15</option>
                                            <option value="20">20</option>
                                        </select> 条 / 页
                                        <span id="page-first_02" class="p_first arrow page-first" data-action="first">首页</span>
                                        <span id="page-previous_02" class="p_previous arrow page-previous" data-action="previous">上一页</span>
                                        <abbr id="page_indicator_block_02" class="page_indicator_block" _msh_page="1" style="margin:0 10px; width:40px;">1 of 7</abbr>
                                        <span id="page-next_02" class="p_next arrow page-next" data-action="next">下一页</span>
                                        <span id="page-last_02" class="p_last arrow page-last" data-action="last">尾页</span>
                                        <input type="text" id="curr-page_02" class="curr-page" style="margin-left:15px; width:36px;" />
                                        <input type="button" name="btn_goto" id="but_goto_02" value="跳转" class="act__button page-goto" onclick="" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 引入补料单 -->
                    <div id="tab_wrapper_03" class="tab__content" style="padding:0 8px; display:none;">
                        <div id="btn_panel_03" style="position:relative; top:0px; padding:5px 0;">
                            <button type="button" name="_ButImportMrpB" id="ButImportMrpB" class="act__button act__save" onclick="_InstancePageLinesMrpFeedingHeader.ImportMrpFeeding();">引入补料单</button>
                        </div>
                        <div id="data_area_03">
                            <table id="tabMrpFeedingListHeader" class="layout display" style="width:324px;">
                                <colgroup>
                                    <col style="width: 30px;" />
                                    <col style="width: 130px;" />
                                    <col />
                                    <col style="width: 18px;" />
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th style="text-align:center;">#</th>
                                        <th>补料单号</th>
                                        <th>订料类型</th>
                                        <th></th>
                                    </tr>
                                </thead>
                            </table>
                            <div id="divMrpFeedingListContent" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll; width:324px; max-height:100px;">
                                <table id="tabMrpFeedingListData" class="responsive__table" style="margin-top:-1px; width:100%;">
                                    <colgroup>
                                        <col style="width: 30px;" />
                                        <col style="width: 130px;" />
                                        <col />
                                    </colgroup>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                            <div id="btn_panel_03_02" style="position:relative; top:0px;">
                                <span id="search_btn_03" class="search__icon" title="搜索" style="cursor:pointer;">
                                    <i class="fa fa-search" style="font-size:20px; position:absolute; top:5px; left:165px;"></i>
                                </span>
                                <span id="title_mrp_lines" style="position:absolute; left:0px; height:28px; line-height:28px; font-weight:bold;">
                                    ■ 引入的补料单明细
                                </span>
                            </div>
                            <div id="grid__wrapper_03" style="position:relative; top:30px;">
                                <table style="width:100%;">
                                    <tr>
                                        <td style="overflow:hidden; width:860px;">
                                            <div id="divH31" style="overflow:hidden; border:none;">
                                                <table id="tabHeader31" class="layout display" style="width:100%;">
                                                    <colgroup>
                                                        <col style="width: 130px;" />
                                                        <col style="width: 130px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 80px;" />
                                                        <col style="width: 200px;" />
                                                    </colgroup>
                                                    <thead>
                                                        <tr>
                                                            <th>补料单号</th>
                                                            <th class="sort__column">款号</th>
                                                            <th class="sort__column">材料名</th>
                                                            <th class="sort__column">材料号</th>
                                                            <th>供应商</th>
                                                            <th>用料部位</th>
                                                        </tr>
                                                    </thead>
                                                </table>
                                            </div>
                                        </td>
                                        <td>
                                            <div id="divH32" style="overflow:hidden; border-right:1px solid #a8a8a8;">
                                                <table id="tabHeader32" class="layout display" style="margin-left:-1px; border-left:none; width:100%;">
                                                    <colgroup>
                                                        <col style="width: 120px;" />
                                                        <col style="width: 150px;" />
                                                        <col style="width: 35px;" />
                                                        <col style="width: 80px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 400px;" />
                                                    </colgroup>
                                                    <thead>
                                                        <tr>
                                                            <th>材料色号</th>
                                                            <th class="sort__column">材料色</th>
                                                            <th>单位</th>
                                                            <th>订货数量</th>
                                                            <th>规格</th>
                                                            <th>发货目的地</th>
                                                            <th style="border-right:none;">备注</th>
                                                        </tr>
                                                    </thead>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="vertical-align:top; width:860px;">
                                            <div id="divD31" class="grid__data_wrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden;">
                                                <table id="tabData31" class="responsive__table" style="margin-top:-1px;">
                                                    <colgroup>
                                                        <col style="width: 130px;" />
                                                        <col style="width: 130px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 80px;" />
                                                        <col style="width: 200px;" />
                                                    </colgroup>
                                                    <tbody></tbody>
                                                </table>
                                            </div>
                                        </td>
                                        <td style="vertical-align:top;">
                                            <div id="divD32" class="grid__data_wrapper" onscroll="_InstancePageLinesMrpFeedingLines.ScrollTo();">
                                                <table id="tabData32" class="responsive__table" style="border-bottom:1px solid #c6c3bd; margin-top:-1px; margin-left:-1px; width:100%;">
                                                    <colgroup>
                                                        <col style="width: 120px;" />
                                                        <col style="width: 150px;" />
                                                        <col style="width: 35px;" />
                                                        <col style="width: 80px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 160px;" />
                                                        <col style="width: 400px;" />
                                                    </colgroup>
                                                    <tbody>
                                                    </tbody>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                                <div id="wrapper__navbar_03" class="panel__nav_strip">
                                    <div style="position:relative; display:inline-block; padding:0px; height:30px; line-height:30px;">
                                        <span id="loading__indicator_03"><i class="fa fa-refresh fa-fw"></i></span>
                                        显示 <select id="page-size_03" onchange="_InstancePageLinesMrpFeedingLines.SetPageSize03()">
                                            <option value="10">10</option>
                                            <option value="15">15</option>
                                            <option value="20">20</option>
                                        </select> 条 / 页
                                        <span id="page-first_03" class="p_first arrow page-first" data-action="first">首页</span>
                                        <span id="page-previous_03" class="p_previous arrow page-previous" data-action="previous">上一页</span>
                                        <abbr id="page_indicator_block_03" class="page_indicator_block" _msh_page="1" style="margin:0 10px; width:40px;">1 of 7</abbr>
                                        <span id="page-next_03" class="p_next arrow page-next" data-action="next">下一页</span>
                                        <span id="page-last_03" class="p_last arrow page-last" data-action="last">尾页</span>
                                        <input type="text" id="curr-page_03" class="curr-page" style="margin-left:15px; width:36px;" />
                                        <input type="button" name="btn_goto" id="but_goto_03" value="跳转" class="act__button page-goto" onclick="" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 订单明细 -->
                    <div id="tab_wrapper_04" class="tab__content" style="padding:0 8px; display:none;">
                        <div id="btn_panel_04" style="position:relative; top:0px; padding:5px 0;">
                            <button type="button" id="ButNewLines" class="act__button act__save" onclick="_InstancePageLines.NewLines();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                            <button type="button" id="ButSaveLines" class="act__button act__save" onclick="_InstancePageLines.DoSaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                            <button type="button" id="ButBatchDeleteLines" class="act__button act__save" onclick="_InstancePageLines.DoBatchDeleteLines();">批量删除</button>
                            <button type="button" name="_ButUpdateRowMaterial" id="ButUpdateRowMaterial" class="act__button act__save" onclick="_InstancePageLines.DoUpdateRowMaterial();">更改材料</button>
                            <button type="button" id="ButEditSurCharges" class="act__button act__save" style="margin-left:15px;" onclick="_InstancePageLines.DoEditSurCharges();">附加费</button>
                            <span id="search_btn_04" class="search__icon" title="搜索" style="cursor:pointer; background:none;">
                                <i class="fa fa-search" style="font-size:20px; position:absolute; top:9px;"></i>
                            </span>
                            <span style="position:absolute; right:0px;">
                                <b style="font-weight:bold;">过滤显示：</b>
                                <select id="PoMaterialList" onchange="_InstancePageLines.FetchLinesForPage(1);" style="width:110px;">
                                    <option value="-1">-- 按材料过滤 --</option>
                                </select>
                            </span>
                        </div>
                        <div id="grid__wrapper_04" style="position:relative;">
                            <table style="width:100%;">
                                <tr>
                                    <td style="overflow:hidden; width:589px;">
                                        <div id="divH41" style="overflow:hidden; border:none;">
                                            <table id="tabHeader41" class="layout display" style="width:100%;">
                                                <colgroup>
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 170px;" />
                                                    <col style="width: 160px;" />
                                                    <col style="width: 160px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr>
                                                        <th style="text-align:center;">
                                                            <label class="btn" for="CheckAll_04" style="margin-left:3px;">
                                                                <input id="CheckAll_04" type="checkbox" onclick="_InstancePageLines.DoCheckAll($(this),'_check_row');" /><i></i><span></span>
                                                            </label>
                                                        </th>
                                                        <th style="text-align:center;">#</th>
                                                        <th style="text-align:center;">删除</th>
                                                        <th class="sort__column">款号</th>
                                                        <th class="sort__column">材料号</th>
                                                        <th class="sort__column">材料名称</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                    <td>
                                        <div id="divH42" style="overflow:hidden; border-right:1px solid #a8a8a8;">
                                            <table id="tabHeader42" class="layout display" style="margin-left:-1px; border-left:none; width:100%;">
                                                <colgroup>
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 48px;" />
                                                    <col style="width: 65px;" />
                                                    <col style="width: 50px;" />
                                                    <col style="width: 75px;" />
                                                    <col style="width: 72px;" />
                                                    <col style="width: 68px;" />
                                                    <col style="width: 55px;" />
                                                    <col style="width: 72px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 400px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr>
                                                        <th class="edit__column">材料色号</th>
                                                        <th class="sort__column">订货颜色</th>
                                                        <th class="edit__column">实到规格</th>
                                                        <th class="edit__column">单位</th>
                                                        <th>计划数量</th>
                                                        <th class="edit__column">损耗</th>
                                                        <th class="edit__column">订单数量</th>
                                                        <th class="edit__column">到货允许</th>
                                                        <th>最大到货数</th>
                                                        <th>基础单价</th>
                                                        <th class="edit__column">订货单价</th>
                                                        <th style="text-align:center;">价格异常</th>
                                                        <th>金额</th>
                                                        <th>到货数</th>
                                                        <th class="edit__column">备注</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align:top; width:589px;">
                                        <div id="divD41" class="grid__data_wrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden;">
                                            <table id="tabData41" class="responsive__table" style="margin-top:-1px;">
                                                <colgroup>
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 170px;" />
                                                    <col style="width: 160px;" />
                                                    <col style="width: 160px;" />
                                                </colgroup>
                                                <tbody></tbody>
                                            </table>
                                        </div>
                                    </td>
                                    <td style="vertical-align:top;">
                                        <div id="divD42" class="grid__data_wrapper" onscroll="_InstancePageLines.ScrollTo();">
                                            <table id="tabData42" class="responsive__table" style="border-bottom:1px solid #c6c3bd; margin-top:-1px; margin-left:-1px; width:100%;">
                                                <colgroup>
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 100px;" />
                                                    <col style="width: 48px;" />
                                                    <col style="width: 65px;" />
                                                    <col style="width: 50px;" />
                                                    <col style="width: 75px;" />
                                                    <col style="width: 72px;" />
                                                    <col style="width: 68px;" />
                                                    <col style="width: 55px;" />
                                                    <col style="width: 72px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 400px;" />
                                                </colgroup>
                                                <tbody>
                                                </tbody>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <div id="wrapper__navbar_04" class="panel__nav_strip">
                                <div style="position:relative; display:inline-block; padding:0px; height:30px; line-height:30px;">
                                    <span id="loading__indicator_04"><i class="fa fa-refresh fa-fw"></i></span>
                                    显示 <select id="page-size_04" onchange="_InstancePageLines.SetPageSize04()">
                                        <option value="15">15</option>
                                        <option value="20">20</option>
                                        <option value="25">25</option>
                                    </select> 条 / 页
                                    <span id="page-first_04" class="p_first arrow page-first" data-action="first">首页</span>
                                    <span id="page-previous_04" class="p_previous arrow page-previous" data-action="previous">上一页</span>
                                    <abbr id="page_indicator_block_04" class="page_indicator_block" _msh_page="1" style="margin:0 10px; width:40px;">1 of 7</abbr>
                                    <span id="page-next_04" class="p_next arrow page-next" data-action="next">下一页</span>
                                    <span id="page-last_04" class="p_last arrow page-last" data-action="last">尾页</span>
                                    <input type="text" id="curr-page_04" class="curr-page" style="margin-left:15px; width:36px;" />
                                    <input type="button" name="btn_goto" id="but_goto_04" value="跳转" class="act__button page-goto" onclick="" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 对引入的调达表明细进行搜索 -->
            <div id="search_02" class="search">
                <div class="search__modal">
                    <div class="search__content search__form">
                        <div class="search__form_header">
                            <h2>设置搜索条件</h2>
                            <div id="search__form_butclose_02">
                                <span title="关闭">×</span>
                            </div>
                        </div>
                        <form id="form_search_02">
                            <table>
                                <colgroup>
                                    <col style="width: 110px;" />
                                    <col />
                                </colgroup>
                                <tbody>
                                    <tr>
                                        <td class="td__label"><label class="form__label">款号</label></td>
                                        <td>
                                            <input type="text" id="StyleNoFilterValue_02" name="_StyleNoFilterValue_02" style="width:400px;" tabindex="1" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">料号</label></td>
                                        <td>
                                            <input type="text" id="MaterialNoFilterValue_02" name="_MaterialNoFilterValue_02" style="width:233px;" tabindex="2" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">料名</label></td>
                                        <td>
                                            <input type="text" id="MaterialNameFilterValue_02" name="_MaterialNameFilterValue_02" style="width:233px;" tabindex="3" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">材料色</label></td>
                                        <td>
                                            <input type="text" id="MaterialColourNameFilterValue_02" name="_MaterialColourNameFilterValue_02" style="width:233px;" tabindex="4" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div id="search-strip_02">
                                <input type="button" name="_but_filter_02" value="搜索" id="but_filter_02" class="act__button" tabindex="5" onclick="_InstancePageLinesMrpLines.FetchLinesForPage(1);"/>
                                <input type="button" name="_but_filter_all_02" value="显示全部" id="but_filter_all_02" class="act__button" tabindex="6" onclick="_InstancePageLinesMrpLines.FetchLinesForPageNoFilter();"/>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

            <!-- 对引入的补料单明细进行搜索 -->
            <div id="search_03" class="search">
                <div class="search__modal">
                    <div class="search__content search__form">
                        <div class="search__form_header">
                            <h2>设置搜索条件</h2>
                            <div id="search__form_butclose_03">
                                <span title="关闭">×</span>
                            </div>
                        </div>
                        <form id="form_search_03">
                            <table>
                                <colgroup>
                                    <col style="width: 110px;" />
                                    <col />
                                </colgroup>
                                <tbody>
                                    <tr>
                                        <td class="td__label"><label class="form__label">款号</label></td>
                                        <td>
                                            <input type="text" id="StyleNoFilterValue_03" name="_StyleNoFilterValue_03" style="width:400px;" tabindex="1" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">料号</label></td>
                                        <td>
                                            <input type="text" id="MaterialNoFilterValue_03" name="_MaterialNoFilterValue_03" style="width:233px;" tabindex="2" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">料名</label></td>
                                        <td>
                                            <input type="text" id="MaterialNameFilterValue_03" name="_MaterialNameFilterValue_03" style="width:233px;" tabindex="3" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">材料色</label></td>
                                        <td>
                                            <input type="text" id="MaterialColourNameFilterValue_03" name="_MaterialColourNameFilterValue_03" style="width:233px;" tabindex="4" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div id="search-strip_03">
                                <input type="button" name="_but_filter_03" value="搜索" id="but_filter_03" class="act__button" tabindex="5" onclick="_InstancePageLinesMrpFeedingLines.FetchLinesForPage(1);"/>
                                <input type="button" name="_but_filter_all_03" value="显示全部" id="but_filter_all_03" class="act__button" tabindex="6" onclick="_InstancePageLinesMrpFeedingLines.FetchLinesForPageNoFilter();"/>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

            <!-- 对订单明细进行搜索 -->
            <div id="search_04" class="search">
                <div class="search__modal">
                    <div class="search__content search__form">
                        <div class="search__form_header">
                            <h2>设置搜索条件</h2>
                            <div id="search__form_butclose_04">
                                <span title="关闭">×</span>
                            </div>
                        </div>
                        <form id="form_search_04">
                            <table>
                                <colgroup>
                                    <col style="width: 110px;" />
                                    <col />
                                </colgroup>
                                <tbody>
                                    <tr>
                                        <td class="td__label"><label class="form__label">款号</label></td>
                                        <td>
                                            <input type="text" id="StyleNoFilterValue_04" name="_StyleNoFilterValue_04" style="width:400px;" tabindex="1" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">料号</label></td>
                                        <td>
                                            <input type="text" id="MaterialNoFilterValue_04" name="_MaterialNoFilterValue_04" style="width:233px;" tabindex="2" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">料名</label></td>
                                        <td>
                                            <input type="text" id="MaterialNameFilterValue_04" name="_MaterialNameFilterValue_04" style="width:233px;" tabindex="3" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="td__label"><label class="form__label">材料色</label></td>
                                        <td>
                                            <input type="text" id="MaterialColourNameFilterValue_04" name="_MaterialColourNameFilterValue_04" style="width:233px;" tabindex="4" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div id="search-strip_04">
                                <input type="button" name="_but_filter_04" value="搜索" id="but_filter_04" class="act__button" tabindex="5" onclick="_InstancePageLines.FetchLinesForPage(1);"/>
                                <input type="button" name="_but_filter_all_04" value="显示全部" id="but_filter_all_04" class="act__button" tabindex="6" onclick="_InstancePageLines.FetchLinesForPageNoFilter();"/>
                            </div>
                        </form>
                    </div>
                </div>
            </div>